processing tutorial vector magnitude